package com.dundun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dundun.domain.Internship;
import com.dundun.service.InternshipService;
import com.dundun.mapper.InternshipMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author wq
* @description 针对表【internship】的数据库操作Service实现
* @createDate 2022-11-19 10:02:05
*/
@Service("internshipService")
public class InternshipServiceImpl extends ServiceImpl<InternshipMapper, Internship>
    implements InternshipService{
    @Resource
    private InternshipMapper internshipMapper;
    @Override
    public List<Internship> getAllInternship() {
        return internshipMapper.getAllInternship();
    }

    @Override
    public int addInternship(Internship internship) {
        return internshipMapper.addInternship(internship);
    }
}




